export const apiLogin = (data) => {
  return uni.request({
    url: '/light-basic/weixinLightController/login',
    method: 'post',
    data,
    resField: 'obj',
    noToken: true,
  })
}
export const apiGetUser = (data) => {
  return uni.request({
    url: '/light-basic/weixinLightController/getInfo',
    method: 'post',
    data,
    resField: 'obj',
  })
}

export const apiEditNameOrAvatar = (data) => {
  return uni.request({
    url: '/light-basic/wxUserController/changeNameAndHeader',
    method: 'put',
    data,
  })
}

export const apiSetPhone = (data) => {
  return uni.request({
    url: '/light-basic/weixinLightController/changeMobile',
    method: 'post',
    data: data,
  })
}
